package com.ruoyi.zhjj.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 证书信息对象 zhjj_qualification
 *
 * @author ruoyi
 * @date 2024-12-29
 */
public class ZhjjQualification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;
    /** 数据发送方ID */
    @NotNull(message = "数据发送方ID不能为空")
    @Excel(name = "数据发送方ID", width = 30)
    private Integer extSysId;

    /** 证书编号 */
    @NotNull(message = "证书编号不能为空")
    @Size(max = 30, message = "证书编号长度不能超过30个字符")
    @Excel(name = "证书编号", width = 30)
    private String certificateNumber;

    /** 证书名称 */
    @NotNull(message = "证书名称不能为空")
    @Size(max = 100, message = "证书名称长度不能超过100个字符")
    @Excel(name = "证书名称", width = 100)
    private String certificateName;

    /** 证书性质 */
    @NotNull(message = "证书性质不能为空")
    @Excel(name = "证书性质", width = 30)
    private Long certificateNature;

    /** 单位名称 */
    @NotNull(message = "单位名称不能为空")
    @Size(max = 100, message = "单位名称长度不能超过100个字符")
    @Excel(name = "单位名称", width = 100)
    private String companyName;

    /** 单位编码 */
    @NotNull(message = "单位编码不能为空")
    @Size(max = 30, message = "单位编码长度不能超过30个字符")
    @Excel(name = "单位编码", width = 30)
    private String companyCode;

    /** 持有人 */
    @Size(max = 60, message = "持有人长度不能超过60个字符")
    @Excel(name = "持有人", width = 60)
    private String holder;

    /** 持有人ID */
    @Size(max = 30, message = "持有人ID长度不能超过30个字符")
    @Excel(name = "持有人ID", width = 30)
    private String holderIdNumber;

    /** 证书类型 */
    @Size(max = 10, message = "证书类型长度不能超过10个字符")
    @Excel(name = "证书类型", width = 30)
    private String certificateType;

    /** 发证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueDate;

    /** 有效截止日期 */
    @NotNull(message = "有效截止日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validityPeriodEnd;

    /** 发证机关 */
    @Size(max = 100, message = "发证机关长度不能超过100个字符")
    @Excel(name = "发证机关", width = 100)
    private String issuingAuthority;

    /** 认证结果 */
    @Size(max = 100, message = "认证结果长度不能超过100个字符")
    @Excel(name = "认证结果", width = 100)
    private String certificationResult;

    /** 证书状态 */
    @Size(max = 10, message = "证书状态长度不能超过10个字符")
    @Excel(name = "证书状态", width = 30)
    private String certificationStatus;


    /** 证书文件URL */
    @Size(max = 500, message = "证书文件URL长度不能超过500个字符")
    @Excel(name = "证书文件URL", width = 500)
    private String certificateFileUrl;


    /** 删除标志，0代表存在，1代表删除 */
    private Long delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExtSysId(Integer extSysId)
    {
        this.extSysId = extSysId;
    }

    public Integer getExtSysId()
    {
        return extSysId;
    }
    public void setCertificateNumber(String certificateNumber)
    {
        this.certificateNumber = certificateNumber;
    }

    public String getCertificateNumber()
    {
        return certificateNumber;
    }
    public void setCertificateName(String certificateName)
    {
        this.certificateName = certificateName;
    }

    public String getCertificateName()
    {
        return certificateName;
    }
    public void setCertificateNature(Long certificateNature)
    {
        this.certificateNature = certificateNature;
    }

    public Long getCertificateNature()
    {
        return certificateNature;
    }
    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public String getCompanyName()
    {
        return companyName;
    }
    public void setCompanyCode(String companyCode)
    {
        this.companyCode = companyCode;
    }

    public String getCompanyCode()
    {
        return companyCode;
    }
    public void setHolder(String holder)
    {
        this.holder = holder;
    }

    public String getHolder()
    {
        return holder;
    }
    public void setHolderIdNumber(String holderIdNumber)
    {
        this.holderIdNumber = holderIdNumber;
    }

    public String getHolderIdNumber()
    {
        return holderIdNumber;
    }
    public void setCertificateType(String certificateType)
    {
        this.certificateType = certificateType;
    }

    public String getCertificateType()
    {
        return certificateType;
    }
    public void setIssueDate(Date issueDate)
    {
        this.issueDate = issueDate;
    }

    public Date getIssueDate()
    {
        return issueDate;
    }
    public void setValidityPeriodEnd(Date validityPeriodEnd)
    {
        this.validityPeriodEnd = validityPeriodEnd;
    }

    public Date getValidityPeriodEnd()
    {
        return validityPeriodEnd;
    }
    public void setIssuingAuthority(String issuingAuthority)
    {
        this.issuingAuthority = issuingAuthority;
    }

    public String getIssuingAuthority()
    {
        return issuingAuthority;
    }
    public void setCertificationResult(String certificationResult)
    {
        this.certificationResult = certificationResult;
    }

    public String getCertificationResult()
    {
        return certificationResult;
    }
    public void setCertificationStatus(String certificationStatus)
    {
        this.certificationStatus = certificationStatus;
    }

    public String getCertificationStatus()
    {
        return certificationStatus;
    }
    public void setCertificateFileUrl(String certificateFileUrl)
    {
        this.certificateFileUrl = certificateFileUrl;
    }

    public String getCertificateFileUrl()
    {
        return certificateFileUrl;
    }
    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extSysId", getExtSysId())
            .append("certificateNumber", getCertificateNumber())
            .append("certificateName", getCertificateName())
            .append("certificateNature", getCertificateNature())
            .append("companyName", getCompanyName())
            .append("companyCode", getCompanyCode())
            .append("holder", getHolder())
            .append("holderIdNumber", getHolderIdNumber())
            .append("certificateType", getCertificateType())
            .append("issueDate", getIssueDate())
            .append("validityPeriodEnd", getValidityPeriodEnd())
            .append("issuingAuthority", getIssuingAuthority())
            .append("certificationResult", getCertificationResult())
            .append("certificationStatus", getCertificationStatus())
            .append("remark", getRemark())
            .append("certificateFileUrl", getCertificateFileUrl())
            .append("createBy", getCreateBy())
            .append("delFlag", getDelFlag())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
